<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link href="../../static/css/login.css" rel="stylesheet" />
		<link type="text/css" rel="stylesheet" href="{{ url_for('static',filename='css/bootstrap.min.css') }}" />
	</head>
    <body>
        <script type="text/javascript">
            {% for message in get_flashed_messages() %}
                alert("{{message}}");
            {% endfor %}
        </script>
	    <div class="login_form">
            <div class="login_title" style="width: 360px;">
                <h3>{{title}}</h3>
                <h5 style="pa: 0;">{{msg}}<a href="{{url}}">{{operate}}</a></h5>
            </div>
            <form action="{{post_url}}" method="POST">
                {% if to_login %}
                <div>
                    <input class="login_input" type="text" name="username" placeholder="用户名或者邮箱" />
                </div>
                {% else %}
                <div>
                    <input class="login_input" type="text" name="username" placeholder="用户名" />
                </div>
                <div>
                    <input class="login_input" type="password" name="key" placeholder="key" />
                </div>
                {% endif %}
                <div>
                    <input class="login_input" type="password" name="password" placeholder='密码' />
                </div>
                <div>
                    <input class="login_btn btn btn-primary" type="submit" value="{{btn}}">
                </div>
            </form>
	    </div>
    </body>
</html>